
package interview.Datastructures;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Project1 {

	public static void main(String[] args) {
		System.out.println("Hello World");
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));        
		String s="";
		int i=0;
		try {
        	System.out.print("Enter String:");
			s = br.readLine();
			System.out.print("Enter Integer:");
			i = Integer.parseInt(br.readLine());
		} catch (IOException e) {
			e.printStackTrace();
		}
        catch(NumberFormatException nfe){
            System.err.println("Invalid Format!");
        }
        System.out.println("Enter String:"+s+"   Entered integer:"+i);               
	}
}
